import 'package:flutter_bugly/flutter_bugly.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:palmf_hid/common/utils/update_helper.dart';
import 'package:palmf_hid/common/utils/utils.dart';

Future<void> checkUpdate() async {
  var packageInfo = await PackageInfo.fromPlatform();
  UpdateHelper.getSingleton()?.checkUpdate(packageInfo.buildNumber, false);
}

void initBugly() {
  FlutterBugly.init(androidAppId: "96b8a8c4ee", iOSAppId: "").then((value) {
    MyLogUtil().e("initBugly: $value");
  });
}
